﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace Ajax
{
    /// <summary>
    /// 网店前台，与会员有关的Ajax方法
    /// </summary>
    public class ShopCustomer
    {
        public ShopCustomer()
        {
        }

        /// <summary>
        /// 根据省份ID，获取城市
        /// </summary>
        /// <param name="provinceID"> 省份 ID </param>
        [AjaxPro.AjaxMethod]
        public static DataTable GetCity(int provinceID)
        {
            DAL.Tables.tbl_Citys table = new DAL.Tables.tbl_Citys();
            DataTable dt = null;

            try
            {
                dt = table.Open("", "ProvinceID=" + provinceID.ToString() + "", "");
            }
            catch { }

            return dt;
        }

    }
}